  -- Pathaleon the Calculator --
function spell0_19220(pUnit, Event) --@Arcane Explosion,n/a--
pUnit:FullCastSpellOnTarget(15453,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19220', 1500, 1)
end
function spell1_19220(pUnit, Event) --@Arcane Torrent,n/a--
pUnit:FullCastSpellOnTarget(36022,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19220', 4414, 1)
end
function spell2_19220(pUnit, Event) --@Domination,n/a--
pUnit:FullCastSpellOnTarget(35280,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19220', 10413, 1)
end
function spell3_19220(pUnit, Event) --@Frenzy,n/a--
pUnit:FullCastSpellOnTarget(36992,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19220', 789, 1)
end
function spell4_19220(pUnit, Event) --@Mana Tap,n/a--
pUnit:FullCastSpellOnTarget(36021,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19220', 814, 1)
end
function Sorts_19220(pUnit, Event)
choix_sorts_19220 = math.random(0, 4)
if choix_sorts_19220 == 0 then
pUnit:RegisterEvent('spell0_19220', 1, 1)
end
if choix_sorts_19220 == 1 then
pUnit:RegisterEvent('spell1_19220', 1, 1)
end
if choix_sorts_19220 == 2 then
pUnit:RegisterEvent('spell2_19220', 1, 1)
end
if choix_sorts_19220 == 3 then
pUnit:RegisterEvent('spell3_19220', 1, 1)
end
if choix_sorts_19220 == 4 then
pUnit:RegisterEvent('spell4_19220', 1, 1)
end
end
function mob19220_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19220', math.random(1500, 3000), 1)
end
function mob19220_Leave(pUnit, Event)
end
function mob19220_Kill(pUnit, Event)
end
function mob19220_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(19220, 1, 'mob19220_Action')
RegisterUnitEvent(19220, 2, 'mob19220_Leave')
RegisterUnitEvent(19220, 3, 'mob19220_Kill')
RegisterUnitEvent(19220, 4, 'mob19220_Die')
